package com.fs.sale.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fs.sale.vo.PriceListItem;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author yrg
 * @since 2024-08-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PriceList implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 报价单ID
     */
    @TableId(value = "pl_id", type = IdType.AUTO)
    private Integer plId;

    /**
     * 客户Id
     */
    private Integer customerId;

    /**
     * 创建时间
     */
    @DateTimeFormat(fallbackPatterns = "yyyy-MM-dd")
    private Date createTime;

    /**
     * 有效时间
     */
    @DateTimeFormat(fallbackPatterns = "yyyy-MM-dd")
    private Date validityPeriod;

    /**
     * 申请人的工号
     */
    private Integer userId;

    /**
     * 默认值为0即未审核，1表示通过，2表示未通过
     */
    private Integer status;

    @TableField(exist = false)
    private List<PriceDetailed> priceDetailedList;


}
